import Vue from 'vue' // 默认不包含模板编译器
import App from './App.vue'

new Vue({
  el: '#app',
  data () {
    return {
      msg: 'atguigu'
    }
  },
  render: h => {
    const vnode = h(
      'div', // tag
      { // data
        attrs: {id: 'root', name: 'xxx'}
      },
      [
        h('p', {}, 'hello'),
        h('span', {}, 'world')
      ]
    )

    console.log(vnode)

    return vnode
  }
})
